import App from './js/app.js'
import _ from 'lodash'

const saveLog = function(openid, cardid, name, log) {
	return new Promise((resolve, reject) => {
		console.log('日志记录')
		uni.request({
			url: 'https://zhylapi.1family.com.cn/prod-api/log/info',
			header: {
				'content-type': 'application/json'
			},
			method: "POST",
			data: {
				"openid": openid,
				"cardid": cardid,
				"name": name,
				"log": log
			},
			success(res) {
				resolve(res)
			},
			fail(res) {
				reject(res)
			}
		});
	})
}

export default {
	saveLog
}